<!-- category -->
<div class="col-sm-6 ">
<?php if(isset($category)): ?>
  <h3><strong>Please choose your category:</strong></h3>

  <div class="row m-t m-b ">
    <div class="col-md-12 no-padder">
      <div class="doc-buttons">
        <a href="javascript: void(0);" class="btn btn-s-sm btn-warning btn-lg col-md-6 m-b btn-math btn-perspective"><h4>វិញ្ញាសាគណិតវិទ្យា/Math Test </h4></a>
        <a href="javascript: void(0);" class="btn btn-s-sm btn-danger btn-lg col-md-6 m-b btn-math btn-perspective"><h4>វគ្គបណ្តុះបណ្តាលការងារ/Training</h4></a>  
    <?php if($category->num_rows() > 0): ?>
      <?php foreach($category->result_array() as $row) : ?>
        <a href="<?php echo site_url('category/view/'.$row['id']); ?>" class="btn btn-primary btn-lg col-md-2 m-b btn-menu btn-perspective"><?php echo $row['name']; ?></a>
      <?php endforeach; ?>
    <?php endif; ?>
      </div>
    </div>
  </div>
<?php endif; ?>
</div>
<!-- END category -->
